package com.pen.sample.client;

import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;
import com.pen.sample.client.model.ITradeRoutes;
import com.pen.sample.client.model.TradeRoutes;
import com.pen.sample.client.model.delegate.IDelegate;
import com.pen.sample.client.model.delegate.MockStocksDelegate;
import com.pen.sample.client.ui.stocks.IStocksPeasant;
import com.pen.sample.client.ui.stocks.StocksPeasantImpl;

public class WebEmpire implements IEmpire
{
	private Emperor _emperor = new Emperor( this );
	private EventBus _viaRegia = new SimpleEventBus();
	private IDelegate _delegate = new MockStocksDelegate();
	private ITradeRoutes _tradeRoutes = new TradeRoutes( _delegate );
	private IStocksPeasant _stocksPeasant = new StocksPeasantImpl();
	
	@Override
	public Emperor getEmperor()
	{
		return _emperor;
	}

	@Override
	public EventBus getViaRegia()
	{
		return _viaRegia;
	}

	@Override
	public ITradeRoutes getTradeRoutes()
	{
		return _tradeRoutes;
	}
	
	@Override
	public IStocksPeasant getStocksPeasant()
	{
		return _stocksPeasant;
	}
}
